import { combineReducers } from 'redux';

import login, { LoginState } from './login';
// 引入connecteRouter
import { connectRouter } from 'connected-react-router'
import history from '../history';

const reducers = combineReducers({ login, router: connectRouter(history)})

// 仓库所有的状态的类型
export type StoreState = ReturnType<typeof reducers>

// 导出部分的reducer的状态类型
export type {
    LoginState
}


export default reducers